package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.dao.base.BaseMapper;
import cn.com.thinvent.dispatch.entity.ModelTask;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ModelTaskMapper extends BaseMapper<ModelTask> {

    ModelTask queryById(@Param("id") Integer id);

    List<ModelTask> queryAllByLimit(@Param("userId") Integer userId,
                                    @Param("taskName") String taskName,
                                    @Param("pageBegin") Integer pageBegin,
                                    @Param("pageSize") Integer pageSize);

    Long count(@Param("userId") Integer userId,
               @Param("taskName") String taskName);

    Integer deleteById(@Param("id") Integer id);
}
